fixed bug when user input is false