bi-orthogonalization now done correctly