[fixed] cyclic graph bug