Deal with NaN's as in S+C when smoothing