Fixed error when handeling new warning as alert.