Fixed bug for heroku
Added config