handle null diff value