fix for crash on startup