fix a router bug