BUG: patch lsqr bug 2466