Fix proper event syntax