bug fix lbfgs