fix routing bug
Merge pull request #397 from pengfei-xue/devel

fix routing bug