Fix function AddTAsk in header file: missing type variable