Adding return wrap(NA_REAL) to a avoid warning