Fix to read different number of points from files