fix cycle detection
Merge pull request #198 from opscode/cycle-detection

Fix: cycle detection