fix ack bug