fix hmm