fix flicker bug kyle