flag fix for heroku