fixed new_const ranges bug