Fix restore snapshot. #123