Prepared v1.0.3. Bug fixed when the element chain is not relative to the doc.