fixed inexplicable bug for rfhmm