Shorten paths