fixed secure flag