Fix a variable typo (transtition -> transition).