RecordEdit: Fix invalid cursors