Fix drawing outline issue on windows