bug fix for heroku