Fixed a bug that only arose on Heroku