Fix a bug with undefined split