fix a bug with variable name