fix for custom events

Signed-off-by: Jason Kuster <unexpectedapocalypse@gmail.com>