fix notice when expected_date is null