Fixed #1339 for documents.