fixed 'std' noise in presence of NaN's