fix weighted consistent hashing errors.