Fix bug in user input switch