Fix updating of previous step size in Linesearch