Fix two problems in mark & sweep GC.