cursor is not closed