remove duplicate "winw" from middleware.py