Fix GC bug in multiversioned system.