Corrected embed handling to ignore embedded instances which do not appear in the...