fix bug in split