fix lookup variabili template