small bugfix, had a wrong name for a variable