Fixed adding data to graphs