patch for GBRLikelihoodEGTools