Solve circular references issue

This change makes it so the plugin now avoids the warnings when encountering circular references (issue #1)