doc_id bug fixes
Merge branch 'dynamicTree' of https://github.com/teiath/gsn-wfm into dynamicTree