Fix 'An illegal choice' bug on search pages.