Some event fixes
Merge branch 'master' into production