Fix createDocumentFragment call