Fixed some problems in the point class