fix glob in if expression