Fixed the incorrect size calculation.