fixing datagrid