Correcting template paths.