fix: bad computation of points