fix check_bandwidth