Leaf detection corrected.