[BUGFIX] Illegal string offset in EditDocumentController