Fix issue with events becoming unbound

Fixes #103