fixing datagrid relation