Tweak path length computation.