fix pending counting when no ack or nack but directly failed or delivered