fixed chopped_leaves bug