Fix glitch on slow devices