bugfix in grid.extract