Fixing Java Windows bug