small bug fix in convex hull computation