bug fix - counter increment