fix node insertion bug when using document as root
document previous fix in change log