fix alert flashing