fixed crash on starting up