fix error where search types weren't toggling correctly.