fix error on rank
Merge pull request #28 from jeffcao/ruitong_backend

fix error on rank