fixed handling of NaN's for moment1