fix counter