fix root document node compilation