Fixed bug that caused failure of certain event code reporting.