fix blinking and full cpu consuming