Fix alerts not being sent after a restart.