fixed bug on var  at l. 175