bugfix in interpolation