fixing data grid relation