Fixed a bug in split.py