fixed allreduce