fixed a bug on heroku deployment