Add a boundary check in the glob engine.