fixed #replace_ranges_with_numbers