fixing nil error for pushing to heroku