Deal with @search not being set