[3.8] Fix #1411 Cannot close alert

- FIx #1411