clearallgraphs fix