Fixed Alerts

fixed an error that was causing the alerts not to fire