fix undefined method heroku error