repair cursor