Fix a logic error when enabling MAC.