fix blinking bug :(