fix the router rules