Fix unnormalization so that it does not return NA.