fix some bugs about routing table