Fixed bug with cycle on a--> b and b --> a. Whew.

Signed-off-by: cauth0n <derekreimanis@yahoo.com>