fix for crash on launch