fixed bugs in email-sending in alarmcascade