Successful attempt to fix crash on startup