When adding documents to processes that were not yet saved, these documents were not linked after saving

When adding documents to processes that were not yet saved, these documents were not linked after saving.