fix display of alert flashes