fix security middleware