correct a variable name bug