fix router state