fix flicker
fixed regression from fixing flicker