bug fix

Fixed bug in interpolation