I changed it to `stub.restore()` as you suggested, and it still works the same. I also added a comment here for further clarification.