fixing restore snapshot