[fix] Prevent cycles due to artifact replacements