fix bug for datagrid failing to load if first dataset created has no data