bugfixes in user input utility