Fix clustering key ranges.