Fix counter-attribute checks