fix a couple of error on win doze