Fix #157: Unset PROTECTED flag when PRIVATE is set