Fix bug in loadbalancing.