fixed distributor bugs