fixed not closing a Cursor.