fix the variable definiton->id in the function newVar