fix up some cursor sharing issues