Fixed the low performance problem on Windows :)