- fix setting of document