Fix runtime error, add GC call