fixed issue with update and add date