fixed the split bug