fix: Replace a document instead of updating it