Purge old events on publication. Fix bug in saveevent