Don't invalidate vector iterator
Merge pull request #453 from igorko/master

Fix events iterator invalidating