Fix catmullRom interpolation function