Fixing bug by Alltoall