Reset the cursor appropriately
Don't leak the GC