Fix progress bar error.
Make it work with Apache2 mod_wsgi