fixed erroneous alert