fixed some distribute problems