Bug fix for Alert DAO