Fixed the case where shift.days is None