Fix events/core.c

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>