fix refreshAlerts()