Bug fix in interpolate.grades