eda4c3eb4c
Before, the check for cycles was wrong and lead to false positives. Fixes #6404 Closes #6474
Before, the check for cycles was wrong and lead to false positives. Fixes #6404 Closes #6474