Fixed regression that broke saving of adhoc searches