Fix a crash on launch