fix broken templates