Corrected place of alert creation.