embedded document fix