Fix #906
Merge pull request #908 from twitter/alltoallfix

Fix #906