fixed crash on startup