Fix Social Middleware