fixed variable error