fix deployment of templates