fix templabels problem in csv generator