fixed bug in getTransitionType