fix range ops. TestHMM works