Trying to fix bug on heroku. Checking the exception.