add_date cannot be null error fix