fix bug with data load