fix updateAlert behaviour