remove nans from data, set to zero