empty voronoi cell prevention, fixed runtime error