Hopefully fixed inserting an event