fixed user input bug