Fix graph bug (last data was not shown on the graph)