Fixes template paths.