fix security check