Bug fix: dependency graph would be corrupted in case of snapshot dependencies.