bug fix in leads_controller.rb API