Fix midpoint missing after undoing split. (#2040)