fix weighted quick union bug