Remove unused cursors