fix counter error
fix counter error