fix extra length size and 1st allocated size