Fix a bug in convex hull. Thanks to Corea.