fixed es-document