Try to avoid MacOS crashes