Fixing transitions out of state
Merge pull request #1 from khanny17/master

Fixing transitions out of state