bagging.wrapper fix