fixed ack overflow