Bugfix in bytes calculation