Fixed lag on windows