Fixed display artifacts bug on Windows