Fixing 500 error on heroku
Fixed 500 error on heroku for alerts