Fix foundation error on Heroku