fixes the bug in the generateeventlog.java