fixed bug in class Point