fixed cycle in dependency graph