correcting var name in bagging missed in refactor