actually fixed search bug