Fix collecting Gc data.