Fix a bug of GC during program load.