fixed bug handling length of ack blocks