Fixed not being able to select branches higher than nine in a list.

* This affected both the "gbs" and "gbd" functions.