Event: Fix missing 'end'