Fix template paths.