fixed bug with filling TmanSamplefunc