Bugfix of mail alert