fix bug where cursor was not reactivated