Detect validation loops
Clean up for cycle detection