-bug fix in send_alert