fixing issues in document creator