Event counter problem fix

Event counter problem is fixed.