fixing last point values