basis.template: small fixes