fix when field value is undef