fixing ACK bug