Setting subdoc's doc property back to subdoc after adding it to main doc.