fixing template content