Fixed error in path resample functionality which didn't reset path calculator and resulted in 0 path sizes.