fixing broken templates.