fix to prevent lots of warnings that $search_type isn’t set