Fix Flash Middleware