fixing save of graphs in wrong folder