counter bug fix

counters for id works correctly now