bug fix of template macro