Fix line search