bugfix in loading HMM models from disk