Fix #1411 Cannot cloe alert
Merge pull request #560 from nlegoff/fix_alert

[3.8] Fix #1411 Cannot close alert