fixed setting first route's index