Fixed a router bug