Fixed bug in recurse() function causing recursion to fail.
Merge pull request #1 from xastor/master

Fixed bug in recurse() function causing recursion to fail.