Fix bugs in Splitting leaf