fixed variable name bug