fix linear interp between coords