fixed generator and grid copy