fixed an issue where a lookup would fail due to recursive children
Merge pull request #154 from cloudnull/inv-bug-fix

fixed an issue where a lookup would fail due to recursive children