Fix for crash when search fields are disabled