fix for AWS bucket issue on heroku