Fixing 502 bad gateway