fixed search bug. sigh