fix bug in alertdiag