fixed bugs in GlobalRouter