Fixed orthogonality check.