Fixed an issue where document titles weren't being updated/determiend properly