diff --git a/Code/hull_almost_exact.cpp b/Code/hull_almost_exact.cpp
index a561335d16ca9b2d05780d76bee4fa4eaac190a3..5ee6b07dc1d0d9e9c37a5b1ab0e94fadb25cbd56 100644
--- a/Code/hull_almost_exact.cpp
+++ b/Code/hull_almost_exact.cpp
@@ -120,7 +120,7 @@ size_t leftmost(const std::vector<vec>& points) {
   size_t min =  0 ;
   //iterato on all the points
   for(size_t i = 1; i < points.size(); ++i) {
-    if(points[i].x < points[min].x) {
+    if(points[i].lexicoinf(points[min])) {
       //update the leftmost
       min = i ;
     }