fix template to schema resolving