fix incorrect state on Windows