corrected onehot for all nan