fixed issues after deployment to heroku