global glob() errors fix