Fixed an issue where the the title of the document was not automatically updated.