bug fixes in LBFGS, but still haven't found THE bug