fix for search bug