Fix attr for template