fix last point in graph --better