placed the endpoint fix in the production.rb