fixed generation of multiple graphs on Save