Correcting algorithm to find geometric centers of voids