Fix incorrect template variable names in event files