fixes the issue for document's name