fixed bugs in counter activities