fix wrong counting with failed ccpm attempts