Dynamic Dropdowns 502 Bad Gateway error