added nil to date values when editing a contract