Corrected issue with perimeter alert