solving app error on heroku htmltopdf