fixed bug in user input