GC and module loading fixes