fix bug of data loading being called twice