small fix to counter