Fix truncated size calculation.