bug fix

Corrected a bug with extend_ham, which causes failure in unfolding if
multiple orbitals were assigned to multiple species.