fix negative counter value