fixed events ordering
Merge branch 'develop'

* develop:
  fixed events ordering