bug fixed for mixed type imputation