Adapt wrong path for template inheritance