fix division by Infinity (in tween duration calculation)