fix double counter