bugfix for the HMM init-m-step