fix templates build, fixes #240