fixed processing events from to same state
added handing of states with no activities
0.1.1