some fixes to make the graph zoomable