Fixed bug on alert