Sometimes there are circles in dependency trees which resulted in indefinite loops.