Corrected size computation logical error