end event now emited correctly
Merge pull request #1 from davit-khaburdzania/bugfix-end-event-dosnt-work

end event now emited correctly