fix bugs for gbdt