Fixed a couple of small windows bugs.