Use changeCursor instead of swapCursor, so the old cursor is closed.