fixed a bug with variable name