Fix boundary conditions for merge and fix typo in split.