fixed error causing heroku not to work