Fixed transitive closure computation.