Use correct variable for protection flags.