fix 502 bad gateway