Fixed alerts not display properly