fix bad name error when running in production