Fixed regression in search code

not sure when/how this got rolled back.. *shrug*