Correct error in transition functions.