fixed `cm_range2long` close #144