Fixed for wsgi operation.