fix basis.template.define(object) case