bugfix: Working with multiple / different docs in one process.