Fixed error with search_type.