Don't coredump -> fix the gc_sweepall function.