BugFix on linear interpolation