empty counter bug fix