Adjust Bagging functions
Bagging functions corrected
Bagging functions corrected