Properly reset overrided cursor in dialog headwords window