Fixed typo in detecting windows.