Correcting file locations for template