using a more stable criterion for assigning orbitals to subspaces.