fix getTransitionMatrix