Fixed a bug in one of the split methods.