Fix search api when using proxy