Fixed variable name bug