Fix deletion of events. Closes #18