fix embeddeddocumentfields