corrected special case for ynt imputation

Trailing NAs are calculated correctly for special cases