fixes the graphs adding on top of each other