fix crash on launch