fix regression in path clonning