fixed bug for heroku