Fixed bug in split