Make sure each event type gets a unique handler. Fixes #4
Set id to proper id