fix pinned thread heroku error