Missing statement to close the cursor

oops