Fixed bug with searching for option while typing