fix leak of entered word on windows with clearscreen