fixing heroku index of error