Small bug fix

changed name of variable to fix bug