fix counter display issue