fix router's bug