handle nil fields