Fix forEach in gc