Fixed saving of events
Merge remote-tracking branch 'remotes/origin/master'