Fixing Bug in windows init