fixing restoreSnapshot unchanged src conditional