fixed redirect loop while no routers.