fixed bugs on heroku