fix gbm for very low sample datasets