interpolate fix for nans