Fix weird DataGrid behaviour