fix to send the correct alerts