fixed a variable name issue