Finally fix pattern filling on Windows (it never worked properly)