Fix bug in IndexRoute