If I replace a document with itself in a collection, the document seems to be altered. My data becomes unusable because of this problem. What am I doing wrong?