fixed header sent warning for template-function