fixed time flicker bug