Fix getTransitionDuration helper