Fix bug

I was incorrectly calling the leaves method and
not getting the leaves attribute.
Merge pull request #12 from bodepd/fix_leaves_call

Fix bug