Fixed bug where the selection gets stuck in a certain input