Fix var not defined