fix in wsgi and rules