fixed bug in BFGS optimizationy