fix issue #225 also with new documents