Fixing the templates, as well as a bug in alamode-publish