fix the situation that sum is equals to the sum of sub path which is not until leaf node