fixed crash on first start