fixed bg blinking issue