mailalerts : fix when deleting an alert