fixed crash on loading data