Fixed tag counter issues.