fix to handling of nested <embedded> blocks