Fixes issue where sometimes the graph would show up in the top left corner.