fix a problem with schema-based handling