ref bugfix when stopping/conitnuing cursors