fixing flashing background