fix document iteration creation