Fixing problems with submitting searches.