Fix bagging graphs