fixing search api