Change worked locally but failed on heroku