Fixes search bug