fixed a variable mistake