Fixed some problems on WSGI bridge