Fix undefined vars.