Fix crash on init on some machines