Fixed a nasty bug causing the splitting code to go haywire.

It was a couple of innocent uninitialized variables...