Fixed a bug in ConvexHull