fixed variable type error