Fix bug in schmidt decomposition for complex orbitals