Minor bug fix to GLM1 grid search