Fix alert box issue