fix for flicker