fixes bug that resulted in last 2 datapoints not being shown
fixes bug that resulted in last 2 datapoints not being shown