fixed event counter update bug