Fix midpoint missing after undoing split. (#2040)
Adjust fix for #2040