fixed typo in event file generation.