fix counter bug