fixed bugs for load balancing example