Fixing the main template.