trying to fix nil class heroku error