fix unmounting of graphs