Fixed critical-ish circular detection bug