fix a parameter bug generated by modifying search.views.validate()