Fixed bug - false detection of circular reference