fix counter format parser bug