Correct the initialization of new documents #1295