fixed stateseq hamming error bug