fixed a variable name error