Fix conversion of splits to offsets.