fix search api