fix the bug of the router