Fix MobileDetectionMiddleware