Merge: The whole logical structure is written to the anchors (#5)

Fix bug #5