Hotfix for document/string comparison issue