Fix template.import