Found and fixed a bug in the glob() routine

Promoting a5d04fef8e38fcf1000563ad4df3f1dca930c8da to the release branch