Fixed the event counter not updating in the event log