Restore cursor cleanup.