Fixed using acceleration in both major step and line search.