Resolving heroku failure