Fixed error in degeneracy of states