fixed state update
Merge branch 'develop'