Fix depth gauge in extractEmbeddedEntity