Bugfix fragment size calculation