fixed router bug