Fixed doubling of template paths