Fix a bug in projected_linesearch method in BQP.