Fix protection assertions.