Fixed error when creating pin on Heroku