Corrected error in alerts controller