fixed bugs with delete events
Merge branch 'secondDemo' of https://github.com/nromanen/Ch-024 into secondDemo