another attempt at a fix for flicker