fix acts_as_api in distributor