Fixed massive math fail in TransitionFunctions.