Fix alert message failing to disappear.