fixed crash on empty return from search