Gateway Error: Getting 502 bad gateway error when editing a submission