fixed crash on empty search