fixed how to resolve template file