Fixed Bug with wrong Document merge