fixed a bug that prevented the alert box from being deleted permanently after close