fix max range decrementing bug in _overlapping_range_