fix security.context bug