Fixed crash in AlertManager (double free)