fix counter attribute checking