fix api reverse proxy