WSGI script needs the same fix as runserver.