fixed a var name bug