Fixed bug causing cyclic dependencies from being ignored.