Ensure the cursor restore takes place into the same tree buffer