fixed bug with embedded objects that have a schema