fixed #463 state や transition の順番の入れ替え
Merge pull request #481 from dadaa/463

463 state や transition の順番の入れ替え