fix no method error on heroku