fix linear interp