Fix styling of templates