fix a bug in imputing part