fixed some bugs in spectral HSMM