fixed empty search bug