fix rake task error on heroku deployment