Bug fix on leaf splitting.