Fixed a bug where split was not being done