double restore diagram bug is fixed
Merge pull request #1382 from DmitriyChernov/doubleSaveRestore

double restore diagram bug is fixed