Fixed empty search bug