Fixing windows bugs.