Fix bad pixels on windows