avoid error when no search term is introduced