fix core/counter bug