fix bug in ack