added missing undef var