fixed search glitch