Modify Transition.prototype.advance