State machine in state gen fixed
Merge remote-tracking branch 'origin/master'