fix a glob bug