Fixed alert errors