fixes #155 infinate recursion error with resource dependencies
Merge pull request #200 from davefowler/master

Infinite Recursion fix