fix Router::build