fix for template tax functions