Fix alert box display bug