Fix the bug while counting the size

修复了计算体积时的错误