ENH: bug fixes in the backtracking line search.