fix for avail_size less than 8