Fixed regression bug with paths