fix for linear path, plus similar change for quad path (just to be sure)