Fixed flicker in webkit