fixed the interactive freezing on windows

-Dharmatej