fix issue with less than 4 points and more than 4 points aligned