fixed bug with points on one line