Fixed error on empty search.