Fixed router  bug