Fixed the code that checks for NACKS with expected sequence numbers that are outside the sliding window.