Fix dependency handling for snapshots