Incorrect index name in split function