fix checking on gbm