fixing broken templates