Fix the 502 Bad Gateway that randomly started occuring. Props @rmccue