fix security mode