Fixed init router bug