fixed for #8067(schema-export fails to work)