Fix bug in distributor manger.