Fix bugs in pre-spliting.