fix empty search errors