fixed a bug in LoadBalancer