fix bug in split corpus