Fixed the point calculation