Fix bandwidth calculation