Fix undefined  variable.