fix error when glob fails