fixed edit router bug