fixes template addition