finally fixed the alerts