Fixed bug in user-input