fix orthogonalization bug 1