Fixes to bandwith limitation function