Fixed alerts not displaying properly (again)