diff --git a/gobgp/main.go b/gobgp/main.go
index <HASH>..<HASH> 100644
--- a/gobgp/main.go
+++ b/gobgp/main.go
@@ -355,7 +355,7 @@ func (x *ShowNeighborRibCommand) Execute(args []string) error {
 			rt = "ipv6"
 		}
 	} else {
-		rt = args[1]
+		rt = args[0]
 	}
 	b := get("neighbor/" + x.remoteIP.String() + "/" + x.resource + "/" + rt)
gobgp: fix showing rib with a specific route family