datagrid bug fix