fix bug of lbfgs