fix router bug