Fixing an error when mix (mixpred) contains NA value(s)